package com.num;
import java.util.Scanner;
public class test {

    public static void main(String[] args) {

        Computer a=new Computer();

        System.out.println("请输入x的值");
        Scanner user=new Scanner(System.in);
        a.x=user.nextDouble();
        System.out.println("请输入y的值");
        a.y=user.nextDouble();
        double sum1=a.add();
        System.out.println("("+a.x+"-"+a.y+")"+"的值为"+sum1);
        double sum2=a.subtract();
        System.out.println("("+a.x+"-"+a.y+")"+"的值为"+sum2);
        double sum3=a.multiply();
        System.out.println("("+a.x+"*"+a.y+")"+"的值为"+sum3);
        double sum=a.divide();
        System.out.println("("+a.x+"/"+a.y+")"+"的值为"+sum);
    }

}
